package cn.wolfcode.domain;

import lombok.*;

@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class JsonResult {
    //成功一般不返回信息,直接跳转,给他设置默认值
    private boolean success = true;
    private String msg;//错误时返回错误信息
    private Object data;//正确时返回需要的参数

    public JsonResult(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

}
